package com.ac.input.web.action.input;

import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;

import com.caac.core.web.action.BaseAction;
import com.caac.core.web.form.BaseForm;
import com.ac.input.dao.ReportsDao;

/**
 * <p>Title: </p>
 * <p>Description: </p>
 * <p>Copyright: Copyright AgileCentury 2004</p>
 * <p>Company: AgileCentury</p>
 * @author <a href="mailto:lianzs@tom.com">Lianzs</a>
 * @version 1.0
 */
public class ListLogAction extends BaseAction {
    protected ActionForward doExecute(ActionMapping mapping,
                                      BaseForm form,
                                      HttpServletRequest request,
                                      HttpServletResponse response) throws
            Exception {
        String groupName = request.getParameter("groupName");
        String subName = request.getParameter("subName");

        ReportsDao rpsDao = (ReportsDao)this.getBean("reportsDao");
        List dmList = rpsDao.getHndLogs(groupName, subName);

        request.setAttribute("dmList", dmList);
        return forward(mapping);
    }
}
